/*
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Library General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301,  USA
 */
#include "db_sqlite.h"
#include <Elementary.h>

#define ALBUM 0
#define PLAYLIST 1

void clean_up(void);
void set_duration(void);
void set_duration(void);
void prev_button_clicked(void *data, Evas_Object *obj, void *event_info);
void play_button_clicked(void *data, Evas_Object *obj, void *event_info);
void next_button_clicked(void *data, Evas_Object *obj, void *event_info);
void vol_changed(void *data, Evas_Object *obj, void *event_info);
void pos_changed_start(void *data, Evas_Object *obj, void *event_info);
void pos_changed(void *data, Evas_Object *obj, void *event_info);
void load_dir(Evas_Object *li, char *direc);
void up_button_clicked(void *data, Evas_Object *obj, void *event_info);
void create_gui(Evas_Object *win);
void create_dir_browser_page(void *data, Evas_Object *obj, void *event_info);
void home_button_clicked(void *data, Evas_Object *obj, void *event_info);
void sel_file_button_clicked(void *data, Evas_Object *obj, void *event_info);
void stop_button_clicked(void *data, Evas_Object *obj, void *event_info);
void cancel_button_clicked(void *data, Evas_Object *obj, void *event_info);
void dir_list_select(void *data, Evas_Object *obj, void *event_info);

Evas_Object *list, *pos_slider, *ic_folder, *ic_albums, *dir_browser_page_win, *ic_generic, *inwin, *dir_list;
Evas_Object *play_cur_pos, *play_dur;
extern int  fd;
extern FILE *mp_data;
extern char home_dir[255], intone_dir[255];
Elm_Genlist_Item_Class itc_list, itc_dir_list;

